package com.edfu.core.ams.persistence.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.edfu.core.coursemgt.persistence.entity.BatchSectionEntity;
import com.edfu.core.coursemgt.persistence.entity.CourseEntity;

@Entity
@Table(name="timetable")
public class TimetableEntity implements IAttendanceMgtEntity {
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)	
	private long id;
	
	@ManyToOne
	@JoinColumn(name = "course_id", nullable = false)
	private CourseEntity course;
	
	@ManyToOne
	@JoinColumn(name = "section_id", nullable = false)
	private BatchSectionEntity sectionEntity;
	
	private String sun;
	private String mon;
	private String tues;
	private String wed;
	private String thurs;
	private String fri;
	private String satur;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	public String getSun() {
		return sun;
	}
	public void setSun(String sun) {
		this.sun = sun;
	}
	
	public String getMon() {
		return mon;
	}
	public void setMon(String mon) {
		this.mon = mon;
	}
	
	public String getTues() {
		return tues;
	}
	public void setTues(String tues) {
		this.tues = tues;
	}
	
	public String getWed() {
		return wed;
	}
	public void setWed(String wed) {
		this.wed = wed;
	}
	
	public String getThurs() {
		return thurs;
	}
	public void setThurs(String thurs) {
		this.thurs = thurs;
	}
	
	public String getFri() {
		return fri;
	}
	public void setFri(String fri) {
		this.fri = fri;
	}
	
	public String getSatur() {
		return satur;
	}
	public void setSatur(String satur) {
		this.satur = satur;
	}	
	
	public CourseEntity getCourse() {
		return course;
	}
	public void setCourse(CourseEntity course) {
		this.course = course;
	}
	
	public BatchSectionEntity getSectionEntity() {
		return sectionEntity;
	}
	public void setSectionEntity(BatchSectionEntity sectionEntity) {
		this.sectionEntity = sectionEntity;
	}	

}
